package com.ruoyi.ofld.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ofld.mapper.ShipTypeMapper;
import com.ruoyi.ofld.domain.ShipType;
import com.ruoyi.ofld.service.IShipTypeService;

/**
 * 运输类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Service
public class ShipTypeServiceImpl implements IShipTypeService 
{
    @Autowired
    private ShipTypeMapper shipTypeMapper;

    /**
     * 查询运输类型
     * 
     * @param id 运输类型主键
     * @return 运输类型
     */
    @Override
    public ShipType selectShipTypeById(Long id)
    {
        return shipTypeMapper.selectShipTypeById(id);
    }

    /**
     * 查询运输类型列表
     * 
     * @param shipType 运输类型
     * @return 运输类型
     */
    @Override
    public List<ShipType> selectShipTypeList(ShipType shipType)
    {
        return shipTypeMapper.selectShipTypeList(shipType);
    }

    /**
     * 新增运输类型
     * 
     * @param shipType 运输类型
     * @return 结果
     */
    @Override
    public int insertShipType(ShipType shipType)
    {
        return shipTypeMapper.insertShipType(shipType);
    }

    /**
     * 修改运输类型
     * 
     * @param shipType 运输类型
     * @return 结果
     */
    @Override
    public int updateShipType(ShipType shipType)
    {
        return shipTypeMapper.updateShipType(shipType);
    }

    /**
     * 批量删除运输类型
     * 
     * @param ids 需要删除的运输类型主键
     * @return 结果
     */
    @Override
    public int deleteShipTypeByIds(Long[] ids)
    {
        return shipTypeMapper.deleteShipTypeByIds(ids);
    }

    /**
     * 删除运输类型信息
     * 
     * @param id 运输类型主键
     * @return 结果
     */
    @Override
    public int deleteShipTypeById(Long id)
    {
        return shipTypeMapper.deleteShipTypeById(id);
    }
}
